      <!--sidebar start-->
      <aside>
          <div id="sidebar"  class="nav-collapse ">
              <!-- sidebar menu start-->
              <ul class="sidebar-menu">
                  <!--此处填充内容-->
                        <% menuDefined = [{rootMenu:{name:"menuIndex",icon:'fa fa-dashboard',title:'首页',link:'index.html'}},
                        
                        
                        {rootMenu:{icon:'fa fa-upload',title:'上传文件',link:'#'},
                        childrenMenus:[
                            {name:'menuUpload',title:'上传文件',link:'uploadfile.html'}    
                        ]}
                        /*
                        {rootMenu:{icon:'fa fa-sitemap',title:'组织',link:'#'},
                        childrenMenus:[
                            {name:'menuOrgnization',title:'企业架构',link:'orgnization.html'}    
                        ]},
                        {rootMenu:{icon:'fa fa-gear',title:'设置',link:'#'},
                        childrenMenus:[
                                
                        ]},

                        {rootMenu:{icon:'fa fa-archive',title:'库存',link:'#'},
                        childrenMenus:[
                            {name:'menuServerList',title:'服务器管理',link:'server.html'},
                            {name:'menuGameList',title:'游戏管理',link:'game.html'}
                                
                        ]},
                        {rootMenu:{icon:'fa fa-shopping-cart',title:'采购',link:'#'},
                        childrenMenus:[
                                
                        ]},
                        {rootMenu:{icon:'fa fa-truck',title:'销售',link:'#'},
                        childrenMenus:[
                                
                        ]}
                         */
                        ] %>

                        <% menuDefined.forEach(function(menu) { %>
                            <% if (menu.childrenMenus) { %>
                                <% isSubMemuSelected = false %>
                                <% menu.childrenMenus.forEach(function(item){if(item.name==selectedMenu){
                                    isSubMemuSelected = true;
                                 }}) %>

                                <% if (isSubMemuSelected) { %>
                                    <li class="sub-menu active"> 
                                <% } else { %>
                                    <li class="sub-menu"> 
                                <% } %>

                            <% } else { %>
                                <% if (menu.rootMenu.name == selectedMenu){ %>
                                    <li class="active">
                                <% } else { %>
                                    <li>
                                <% } %>
                            <% } %>
                    
                            <%- include("menuitem",{isRootItem:true, iconClass:menu.rootMenu.icon,link:menu.rootMenu.link,title:menu.rootMenu.title})%>
                            <% if(menu.childrenMenus && menu.childrenMenus.length>0) { %>
                            <ul class="sub">
                                <% menu.childrenMenus.forEach(function(subitem){ %>
                                    <%- include("menuitem",{isRootItem:false,actived:(selectedMenu==subitem.name),link:subitem.link,title:subitem.title})%>
                                <% }); %>
                            </ul>
                            <% } %>
                        <% }) %>

                        <!--填充结束-->
              </ul>
              <!-- sidebar menu end-->
          </div>
      </aside>
      <!--sidebar end-->